<div class="row"> 
<div class="span2 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
<div class="span10">
   <div class="table_content">
		<div class="ta_top"></div>
	    <div>
		   机构:<select name='group' id='group'>
		         <option value=''>--请选择机构--</option>
				 <*$groupopt*>
				</select>
		   校园:<select name='garden' id='school'>
		         <option value=''>--请选择校园--</option>
				</select>
            <input type='button' id='sel' value='查询'>
			<input type='button' id='clear' value='清空查询'>			
        </div>
		<div id='cdiv'>
			<form action='/<*$controller*>/returncash' method='post'>
			<div id='class'>
			   
			</div>
			<input type='submit' value='生成'><input type='button' value='返回' onclick='history.go(-1)'>
			</form>
		</div>
    <div class="ta_bottom"></div>
	  </div>  
</div>
</div>
<script type="text/javascript"> 
$('#cdiv').hide();
$('#group').change(function(){
  var gid = $(this).val();
  $.get("/ordershop/getsch/gid/"+gid,
	function(data){
	  $('#school').empty();
	  $('#school').append(data);
	});
})
$('#sel').click(function(){
    var gid = $('#group').val();
    var sid = $('#school').val();
    $.get("/ordershop/getcla/gid/"+gid+"/sid/"+sid,
	function(data){
	  $('#class').empty();
	  $('#class').append(data);
	});
	$('#cdiv').show();
	
})
</script>